/* =============================================
   GENYUG AI SECTION — styles.css
   ============================================= */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --gy-primary: #4C3BCC;
  --gy-primary-dark: #2E208A;
  --gy-accent: #00E5A0;
  --gy-accent-soft: #E0FFF5;
  --gy-purple-light: #EEF0FF;
  --gy-text: #12112A;
  --gy-text-muted: #6B6884;
  --gy-bg: #ffffff;
  --gy-surface: #F7F6FF;
  --gy-border: rgba(76,59,204,0.12);
  --gy-radius: 16px;
  --gy-radius-sm: 10px;
  --font-head: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

#genyug-ai-section {
  font-family: var(--font-body);
  color: var(--gy-text);
  background: var(--gy-bg);
  overflow: hidden;
}

/* ===== NAVBAR ===== */

/* Nav variables */
:root {
  --nav-bg: #0A1628;
  --nav-blue: #1565C0;
  --nav-blue-hover: #1976D2;
  --nav-blue-light: #E3F2FD;
  --nav-text: #ffffff;
  --nav-text-muted: rgba(255,255,255,0.70);
  --nav-border: rgba(255,255,255,0.08);
  --nav-height: 72px;
}

.header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--nav-bg);
  border-bottom: 1px solid var(--nav-border);
  box-shadow: 0 2px 20px rgba(0,0,0,0.25);
  transition: background 0.3s ease;
}

.header .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  position: relative;
}

/* Logo */
.header .logo {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 800;
  color: var(--nav-text);
  text-decoration: none;
  letter-spacing: -0.3px;
  white-space: nowrap;
}
.header .logo span { color: #42A5F5; }

/* Navbar */
.header .navbar {
  display: flex;
  align-items: center;
}

.header .navbar-list {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.header .navbar-link {
  display: block;
  padding: 8px 14px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--nav-text-muted);
  text-decoration: none;
  border-radius: 8px;
  transition: color 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}
.header .navbar-link:hover,
.header .navbar-link.active {
  color: #fff;
  background: rgba(255,255,255,0.08);
}

/* Active "Partner" link — special blue highlight */
.header .navbar-link[href="genyug-index.html"] {
  color: #42A5F5;
  background: rgba(21,101,192,0.18);
  border: 1px solid rgba(66,165,245,0.25);
}
.header .navbar-link[href="genyug-index.html"]:hover {
  background: rgba(21,101,192,0.30);
  color: #90CAF9;
}

/* Get A Quote button */
.header .btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  background: var(--nav-blue);
  color: #fff;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 8px;
  white-space: nowrap;
  transition: background 0.2s ease, transform 0.15s ease;
  flex-shrink: 0;
}
.header .btn:hover {
  background: var(--nav-blue-hover);
  transform: translateY(-1px);
}
.header .btn ion-icon {
  font-size: 16px;
}

/* Mobile toggle buttons */
.header .nav-open-btn,
.header .nav-close-btn {
  display: none;
  background: none;
  border: none;
  color: var(--nav-text);
  font-size: 28px;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

/* Overlay for mobile */
.header .overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 998;
}
.header .overlay.active { display: block; }

/* Navbar top row (mobile only) */
.header .navbar-top {
  display: none;
}

/* ===== MOBILE NAV ===== */
@media (max-width: 900px) {

  .header .nav-open-btn { display: flex; }

  .header .navbar {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: #0D1F3C;
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    z-index: 999;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -4px 0 24px rgba(0,0,0,0.3);
  }
  .header .navbar.active { right: 0; }

  .header .navbar-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 20px 16px;
    border-bottom: 1px solid var(--nav-border);
  }
  .header .navbar-top .logo { font-size: 18px; }

  .header .nav-close-btn {
    display: flex;
    font-size: 26px;
  }

  .header .navbar-list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 16px 12px;
  }

  .header .navbar-link {
    padding: 12px 16px;
    font-size: 15px;
    border-radius: 10px;
  }

  .header .btn { display: none; }
}

/* ===== PARTNER BAR ===== */
.gy-partner-bar {
  background: linear-gradient(90deg, var(--gy-primary), #7C5CFA);
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.gy-partner-bar span { color: rgba(255,255,255,0.85); font-size: 13px; font-family: var(--font-body); }
.gy-partner-bar strong { color: #fff; font-weight: 600; }
.gy-verified-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  font-size: 12px;
  padding: 3px 12px;
  border-radius: 20px;
  font-weight: 500;
}
.gy-verified-pill::before { content: "✓"; font-size: 11px; }

/* ===== HERO ===== */
.gy-hero {
  position: relative;
  padding: 80px 24px 60px;
  text-align: center;
  background: var(--gy-surface);
  overflow: hidden;
}
.gy-hero::before {
  content: '';
  position: absolute;
  top: -80px; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 400px;
  background: radial-gradient(ellipse at center, rgba(76,59,204,0.10) 0%, transparent 70%);
  pointer-events: none;
}
.gy-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--gy-purple-light);
  border: 1px solid var(--gy-border);
  color: var(--gy-primary);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 16px;
  border-radius: 20px;
  margin-bottom: 22px;
}
.gy-eyebrow-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gy-accent);
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.4); }
}
.gy-hero h2 {
  font-family: var(--font-head);
  font-size: clamp(28px, 5vw, 46px);
  font-weight: 800;
  line-height: 1.15;
  color: var(--gy-text);
  max-width: 700px;
  margin: 0 auto 18px;
}
.gy-hero h2 .gy-highlight { color: var(--gy-primary); }
.gy-hero p {
  font-size: 16px;
  color: var(--gy-text-muted);
  line-height: 1.75;
  max-width: 540px;
  margin: 0 auto 36px;
  font-weight: 300;
}
.gy-hero-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ===== BUTTONS ===== */
.gy-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--gy-radius-sm);
  font-size: 15px;
  font-weight: 500;
  font-family: var(--font-body);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  text-decoration: none;
  border: none;
}
.gy-btn:hover { transform: translateY(-2px); }
.gy-btn-primary {
  background: var(--gy-primary);
  color: #fff;
  box-shadow: 0 4px 20px rgba(76,59,204,0.28);
}
.gy-btn-primary:hover { box-shadow: 0 8px 30px rgba(76,59,204,0.38); }
.gy-btn-outline {
  background: transparent;
  color: var(--gy-primary);
  border: 1.5px solid var(--gy-border);
}
.gy-btn-outline:hover { background: var(--gy-purple-light); }

/* ===== STATS ===== */
.gy-stats {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  background: #fff;
  border-top: 1px solid var(--gy-border);
  border-bottom: 1px solid var(--gy-border);
}
.gy-stat-item {
  flex: 1;
  min-width: 140px;
  padding: 28px 24px;
  text-align: center;
  border-right: 1px solid var(--gy-border);
}
.gy-stat-item:last-child { border-right: none; }
.gy-stat-num {
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 800;
  color: var(--gy-primary);
  display: block;
  margin-bottom: 4px;
}
.gy-stat-label { font-size: 13px; color: var(--gy-text-muted); }

/* ===== FEATURES ===== */
.gy-features {
  padding: 70px 24px;
  max-width: 1100px;
  margin: 0 auto;
}
.gy-section-title { text-align: center; margin-bottom: 48px; }
.gy-section-title h3 {
  font-family: var(--font-head);
  font-size: clamp(22px, 3.5vw, 32px);
  font-weight: 700;
  color: var(--gy-text);
  margin-bottom: 10px;
}
.gy-section-title p {
  font-size: 15px;
  color: var(--gy-text-muted);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.7;
  font-weight: 300;
}
.gy-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}
.gy-feature-card {
  background: #fff;
  border: 1px solid var(--gy-border);
  border-radius: var(--gy-radius);
  padding: 28px 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.gy-feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(76,59,204,0.10);
  border-color: rgba(76,59,204,0.25);
}
.gy-feature-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 18px;
}
.gy-feature-card h4 {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
  color: var(--gy-text);
  margin-bottom: 8px;
}
.gy-feature-card p {
  font-size: 14px;
  color: var(--gy-text-muted);
  line-height: 1.7;
  font-weight: 300;
}

/* ===== PARTNERSHIP ===== */
.gy-partnership {
  background: linear-gradient(135deg, #F0EEFF 0%, #E8F8F2 100%);
  padding: 60px 24px;
}
.gy-partnership-inner {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
  justify-content: center;
}
.gy-partner-logo-box {
  background: #fff;
  border: 1px solid var(--gy-border);
  border-radius: var(--gy-radius);
  padding: 28px 36px;
  text-align: center;
  flex-shrink: 0;
  min-width: 200px;
}
.gy-logo-circle {
  width: 72px; height: 72px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--gy-primary), #7C5CFA);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  margin: 0 auto 14px;
}
.gy-partner-logo-box h4 {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
  color: var(--gy-text);
  margin-bottom: 4px;
}
.gy-partner-logo-box span { font-size: 12px; color: var(--gy-text-muted); }
.gy-partner-content { flex: 1; min-width: 260px; }
.gy-partner-content h3 {
  font-family: var(--font-head);
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 700;
  color: var(--gy-text);
  margin-bottom: 14px;
  line-height: 1.3;
}
.gy-partner-content p {
  font-size: 15px;
  color: var(--gy-text-muted);
  line-height: 1.75;
  margin-bottom: 22px;
  font-weight: 300;
}
.gy-checkmarks { display: flex; flex-direction: column; gap: 10px; }
.gy-check-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--gy-text);
}
.gy-check-tick {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--gy-accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: #0F6E56;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ===== CHATBOT ===== */
#gy-chat-btn {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gy-primary), #7C5CFA);
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(76,59,204,0.40);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
#gy-chat-btn:hover { transform: scale(1.1); box-shadow: 0 10px 32px rgba(76,59,204,0.50); }
#gy-chat-btn svg { width: 26px; height: 26px; fill: #fff; }
#gy-chat-btn .gy-close-icon { display: none; }

.gy-chat-pulse {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 66px; height: 66px;
  border-radius: 50%;
  background: rgba(76,59,204,0.18);
  z-index: 9998;
  animation: chatpulse 2.2s ease-out infinite;
  pointer-events: none;
}
@keyframes chatpulse {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(1.7); opacity: 0; }
}

#gy-chatbox {
  position: fixed;
  bottom: 100px; right: 28px;
  width: 340px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.14), 0 0 0 1px var(--gy-border);
  overflow: hidden;
  z-index: 9998;
  display: none;
  flex-direction: column;
  max-height: 480px;
  opacity: 0;
  transform: scale(0.92) translateY(16px);
  transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1), opacity 0.2s ease;
}
#gy-chatbox.open { display: flex; transform: scale(1) translateY(0); opacity: 1; }

.gy-chat-header {
  background: linear-gradient(90deg, var(--gy-primary), #7C5CFA);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.gy-chat-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.gy-chat-header-info h5 { color: #fff; font-size: 14px; font-weight: 600; font-family: var(--font-head); }
.gy-chat-header-info span { color: rgba(255,255,255,0.75); font-size: 12px; }
.gy-online-dot {
  width: 8px; height: 8px;
  background: var(--gy-accent);
  border-radius: 50%;
  display: inline-block;
  margin-right: 4px;
  animation: pulse 1.8s ease infinite;
}
.gy-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--gy-surface);
}
.gy-msg {
  max-width: 82%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 13.5px;
  line-height: 1.55;
}
.gy-msg.bot {
  background: #fff;
  color: var(--gy-text);
  border-bottom-left-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  align-self: flex-start;
}
.gy-msg.user {
  background: var(--gy-primary);
  color: #fff;
  border-bottom-right-radius: 4px;
  align-self: flex-end;
}
.gy-typing {
  display: flex;
  gap: 4px;
  align-items: center;
  padding: 10px 14px;
  background: #fff;
  border-radius: 14px;
  border-bottom-left-radius: 4px;
  width: fit-content;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.gy-typing span {
  width: 7px; height: 7px;
  background: var(--gy-primary);
  border-radius: 50%;
  opacity: 0.4;
  animation: typingdot 1.2s ease infinite;
}
.gy-typing span:nth-child(2) { animation-delay: 0.2s; }
.gy-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingdot {
  0%,100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.3); }
}
.gy-chat-input-row {
  display: flex;
  gap: 8px;
  padding: 12px 14px;
  background: #fff;
  border-top: 1px solid var(--gy-border);
}
.gy-chat-input-row input {
  flex: 1;
  border: 1px solid var(--gy-border);
  border-radius: 22px;
  padding: 9px 16px;
  font-size: 13.5px;
  font-family: var(--font-body);
  color: var(--gy-text);
  outline: none;
  background: var(--gy-surface);
}
.gy-chat-input-row input:focus { border-color: var(--gy-primary); background: #fff; }
.gy-send-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--gy-primary);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s;
}
.gy-send-btn:hover { background: var(--gy-primary-dark); }
.gy-send-btn svg { width: 16px; height: 16px; fill: #fff; }
.gy-powered-by {
  text-align: center;
  font-size: 11px;
  color: var(--gy-text-muted);
  padding: 6px 0 10px;
  background: #fff;
}
.gy-powered-by a { color: var(--gy-primary); text-decoration: none; font-weight: 500; }

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
  .gy-stat-item { border-right: none; border-bottom: 1px solid var(--gy-border); padding: 20px; }
  .gy-stat-item:last-child { border-bottom: none; }
  #gy-chatbox { width: calc(100vw - 40px); right: 20px; }
}
